<html>
<head>

<link rel="stylesheet" href="../../../../../../styles/default.css" type="text/css">
</head>
<body bgcolor="#FFFFFF">
<p class="Decl"><b>function</b> IsPointInTriangle(X, Y: TFloat): Boolean;</p>
<p class="Decl"><b>function</b> IsPointInTriangle(Point: TFloatPoint): Boolean;</p>
<h2>Description</h2>
<p class="Body">Check whether the given coordinates are within the triangle defined by the three color points. The function uses the barycentric coordinates and thus may only be called after the coordinations have been transformed in the <a href="PrepareSampling.htm">PrepareSampling</a> procedure. In this case a call will be typically pretty fast, otherwise, the output is undefined.</p>
</body>
</html>